package com.kdd.campus.sh.po;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/****
 * @Author:shenkunlin
 * @Description:ShAd构建
 * @Date 2019/6/14 19:13
 *****/
@ApiModel
@Table(name="sh_ad")
@Data
public class ShAd implements Serializable{

	@ApiModelProperty(value = "")
	@Id
    @Column(name = "id")
	private Integer id;//

	@ApiModelProperty(value = "广告名称")
	@Column(name = "name")
	private String name;//广告名称

	@ApiModelProperty(value = "广告内容")
	@Column(name = "content")
	private String content;//广告内容

	@ApiModelProperty(value = "级别(0:首页的广告)")
    @Column(name = "location")
	private Integer location;//位置(0:首页的广告)

	@ApiModelProperty(value = "广告图片url地址")
    @Column(name = "image_url")
	private String imageUrl;//广告图片url地址

	@ApiModelProperty(value = "广告跳转地址")
    @Column(name = "url")
	private String url;//广告跳转地址

	@ApiModelProperty(value = "创建时间")
    @Column(name = "created")
	private Date created;//创建时间

	@ApiModelProperty(value = "广告状态(0:不展示 1:展示)")
    @Column(name = "status")
	private Integer status;//广告状态(0:不展示 1:展示)



}
